diff --git a/test/core.jl b/test/core.jl index 77f46f35a0259..195241e824e0a 100644 --- a/test/core.jl +++ b/test/core.jl @@ -4859,6 +4859,13 @@ let a = Any[] @test a == [10, 2] end +# issue 47209 +struct f47209 + x::Int + f47209()::Nothing = new(1) +end +@test_throws MethodError f47209() + # issue #12096 let a = Val{Val{TypeVar(:_, Int)}}, b = Val{Val{x} where x<:Int}