Skip to content

Commit

Permalink
Add TypeMembersTest.builtinMethodIsPresent
Browse files Browse the repository at this point in the history
  • Loading branch information
Akirathan committed Feb 25, 2025
1 parent 9cb327b commit e274bb9
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,22 @@ public void ensureNonBuiltinMembersArePresent() throws Exception {
compileError.getMemberKeys());
}

@Test
public void builtinMethodIsPresent() {
var refType =
ContextUtils.evalModule(
ctx, """
import Standard.Base.Runtime.Ref.Ref
main = Ref
""");
ContextUtils.executeInContext(
ctx,
() -> {
assertThat(refType.hasMember("new"), is(true));
return null;
});
}

@Test
public void inheritedMembersFromAnyAreIncluded() {
var type =
Expand Down

0 comments on commit e274bb9

Please sign in to comment.