Skip to content

Commit 4f8566e

Browse files
authored
RM-37730: Fix scoping of type checks (#101)
* Added test case covering #37730. * Added extra test case.
1 parent f5bc351 commit 4f8566e

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

test/res/VariablesHaveFixedTypes.jl

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,18 @@ function _check(this::Check, ctxt::AnalysisContext, sf::SourceFile)::Nothing
2525
end
2626
end
2727
return nothing
28-
end
28+
end
29+
30+
function skip_over_arguments(;
31+
field_size = (x = 0.03, y = 0.038),
32+
field_offset = divide_point(field_size, 2),
33+
field_centers = nothing,
34+
npoints = (x = 5, y = 5),
35+
)::Nothing
36+
return nothing
37+
end
38+
39+
function extra_scope_check()::Nothing
40+
a = (x=5 , y=5 )
41+
b = (x=0.01, y=0.01)
42+
end

0 commit comments

Comments
 (0)