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 1968b14 commit 7a9c7ccCopy full SHA for 7a9c7cc
test/precompile.jl
@@ -2363,4 +2363,19 @@ precompile_test_harness("MainImportDisallow") do load_path
2363
end
2364
2365
2366
+precompile_test_harness("Package top-level load itself") do load_path
2367
+ write(joinpath(load_path, "UsingSelf.jl"),
2368
+ """
2369
+ __precompile__(false)
2370
+ module UsingSelf
2371
+ using UsingSelf
2372
+ x = 3
2373
+ end
2374
+ """)
2375
+ @eval using UsingSelf
2376
+ invokelatest() do
2377
+ @test UsingSelf.x == 3
2378
2379
+end
2380
+
2381
finish_precompile_test!()
0 commit comments