Skip to content

Commit 46bc6e0

Browse files
Changed Implicit test.
1 parent 0f319df commit 46bc6e0

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

src/Generator.Tests/AST/TestAST.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,7 @@ public void TestMacroLineNumber()
285285
[Test]
286286
public void TestImplicitDeclaration()
287287
{
288-
Assert.AreEqual(false, AstContext.FindFunction("testExplicitFunc").Single().IsImplicit);
289-
Assert.AreEqual(true, AstContext.FindFunction("testImplicitFunc").Single().IsImplicit);
288+
Assert.IsTrue(AstContext.FindClass("ImplicitCtor").First().Constructors.First(c => c.Parameters.Count == 0).IsImplicit);
290289
}
291290
}
292291
}

tests/Native/AST.h

+2-8
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,6 @@ class Atomics
107107
#endif
108108
};
109109

110-
void testImplicitFunc();
111-
112-
void testExplicitFunc()
110+
class ImplicitCtor
113111
{
114-
testImplicitFunc();
115-
}
116-
117-
void testImplicitFunc()
118-
{}
112+
};

0 commit comments

Comments
 (0)