mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Add unit test for type(<constant vector>)
This commit is contained in:
parent
16badbbbdc
commit
3c097883c4
1 changed files with 5 additions and 0 deletions
|
@ -4507,6 +4507,11 @@ RETURN R0 0
|
|||
LOADK R0 K0 [0, 0, 0]
|
||||
LOADK R1 K1 [-0, 0, 0]
|
||||
RETURN R0 2
|
||||
)");
|
||||
|
||||
CHECK_EQ("\n" + compileFunction("return type(Vector3.new(0, 0, 0))", 0, 2, /*enableVectors*/ true), R"(
|
||||
LOADK R0 K0 ['vector']
|
||||
RETURN R0 1
|
||||
)");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue