mirror of
https://github.com/hanzoai/prettier.git
synced 2026-10-30 14:46:22 +00:00
17 lines
230 B
JavaScript
17 lines
230 B
JavaScript
import { B, C } from "./issue-824-helper";
|
|
|
|
type K = B | C;
|
|
|
|
type I = {
|
|
which(): number;
|
|
};
|
|
|
|
export default class A {
|
|
static foo(p: K): bool {
|
|
return false;
|
|
}
|
|
static bar(p: I & K): bool {
|
|
return this.foo(p);
|
|
}
|
|
}
|