aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-08-24 11:17:18 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-08-24 16:59:25 -0400
commitf4b044d228f18856fa0ae3fbfc9513aaf26d0db6 (patch)
tree7c155e8fcea164a2ebb93825cb367dcc3dd2d9da /tests
parent7e9d53239f6e8ebff7cf8444d7b97458020317d5 (diff)
Add completion and hover information for builtin types
Diffstat (limited to 'tests')
-rw-r--r--tests/hover_test.odin14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/hover_test.odin b/tests/hover_test.odin
index 9abac4c..5c7b74c 100644
--- a/tests/hover_test.odin
+++ b/tests/hover_test.odin
@@ -4376,6 +4376,20 @@ ast_hover_overload_private_procs :: proc(t: ^testing.T) {
}
test.expect_hover(t, &source, "@(private=\"file\")\nmy_package.foo: proc(s: string)")
}
+
+@(test)
+ast_hover_keyword_transmute :: proc(t: ^testing.T) {
+ source := test.Source {
+ main = `package test
+
+ main :: proc() {
+ foo: f64
+ bar := trans{*}mute(i64)foo
+ }
+ `,
+ }
+ test.expect_hover(t, &source, "transmute(T)v\nBitwise cast between 2 types of the same size.")
+}
/*
Waiting for odin fix