Skip to content

Commit 83c060c

Browse files
committed
make test code valid
1 parent 51ea24a commit 83c060c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/rules/prefer_primordials.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,13 @@ function foo(): Array<any> {}
798798
type p = Promise<void>;
799799
"#,
800800
r#"
801-
#a in A;
801+
class A {
802+
#brand;
803+
804+
static is(obj) {
805+
return #brand in obj;
806+
}
807+
}
802808
"#,
803809
};
804810
}

0 commit comments

Comments
 (0)