blob: 88a1163e167ed0d6c5f67656d01b34d88cb74f2f [file] [log] [blame]
//@ requireOptions("--usePrivateClassFields=1")
function assert(a, e) {
if (a !== e)
throw new Error("Expected: " + e + " but got: " + a);
}
class C {
#m = () => 25;
method() {
return this.#m();
}
}
let c = new C();
assert(c.method(), 25);