From 2a8020706c6309ac23755839cfdb13cf4e11d303 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edvard=20Th=C3=B6rnros?= Date: Mon, 15 Feb 2021 23:49:42 +0100 Subject: add magic blob inference --- src/lib.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 1fa6368..146e534 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1045,7 +1045,11 @@ a() <=> 4 a.a = 2 a.b = 3 a.a + a.b <=> 5 - 5 <=> a.a + a.b" + 5 <=> a.a + a.b", + blob_infer: " +blob A { } +a : A = A() +", ); test_multiple!(tuples, @@ -1213,6 +1217,13 @@ blob C { } blob B { } ", + blob_infer: " +blob A { } + +a : A = A() +", + + constant_function: " a() a :: fn {} -- cgit v1.2.1