From 8014fcd9996d2185dc231803139d5d271a38870a Mon Sep 17 00:00:00 2001 From: maarten Date: Wed, 20 Oct 2021 10:42:21 +0200 Subject: [PATCH] simple incomplete initialization test --- test/test_restack.jl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/test_restack.jl b/test/test_restack.jl index e2439bd9b8..7712b5b9af 100644 --- a/test/test_restack.jl +++ b/test/test_restack.jl @@ -19,6 +19,12 @@ end Base.getproperty(::CustomizedProperties, n::Symbol) = n +struct IncompleteInitialization{A,B} + a::A + b::B + IncompleteInitialization{A,B}(a::A) where {A,B}= new{A,B}(a) +end + function testlabel(x) n = 50 s = repr(x) @@ -56,6 +62,7 @@ end ), CustomizedProperties(1, 2, 3), CustomizedProperties(1, 2, ABC(1, 2, CustomizedProperties(1, 2, 3))), + IncompleteInitialization{Int,String}(2) ] @test restack(x) === x end