From 749dbce4c69224f5464908d8f714291f17aa60fa Mon Sep 17 00:00:00 2001 From: Miran Date: Tue, 16 Oct 2018 10:50:10 +0200 Subject: Merge tests into a larger file (part 5 of ∞) (#9368) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * merge magics * merge metatype tests * merge method tests * merge objects tests * change `import future` to `import sugar` Nim in Action tests are left with `import future`, to ensure compatibility. * merge overload tests * merge proc tests * merge procvar tests * merge range tests * merge seq tests * merge sets tests * remove wrong assert from `tsets3` * fix `jsTests` * better fix --- tests/overload/tsymtabchange_during_or.nim | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 tests/overload/tsymtabchange_during_or.nim (limited to 'tests/overload/tsymtabchange_during_or.nim') diff --git a/tests/overload/tsymtabchange_during_or.nim b/tests/overload/tsymtabchange_during_or.nim deleted file mode 100644 index b5551bcc7..000000000 --- a/tests/overload/tsymtabchange_during_or.nim +++ /dev/null @@ -1,24 +0,0 @@ - -# bug #2229 - -type Type1 = object - id: int - -type Type2 = object - id: int - -proc init(self: var Type1, a: int, b: ref Type2) = - echo "1" - -proc init(self: var Type2, a: int) = - echo """ - Works when this proc commented out - Otherwise error: - test.nim(14, 4) Error: ambiguous call; both test.init(self: var Type1, a: int, b: ref Type2) and test.init(self: var Type1, a: int, b: ref Type2) match for: (Type1, int literal(1), ref Type2) - """ - -var a: Type1 -init(a, 1, ( - var b = new(Type2); - b -)) -- cgit 1.4.1-2-gfad0