We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d7b13e commit b5c2cbeCopy full SHA for b5c2cbe
src/builtins.c
@@ -885,8 +885,6 @@ JL_CALLABLE(jl_f_fieldtype)
885
}
886
JL_NARGS(fieldtype, 2, 2);
887
jl_datatype_t *st = (jl_datatype_t*)args[0];
888
- if (st == jl_module_type)
889
- jl_error("cannot assign variables in other modules");
890
return get_fieldtype(args[0], args[1], 1);
891
892
test/misc.jl
@@ -804,3 +804,7 @@ end
804
805
GC.safepoint()
806
end
807
+
808
+@testset "fieldtypes Module" begin
809
+ @test fieldtypes(Module) isa Tuple
810
+end
0 commit comments