mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
11 lines
158 B
JavaScript
11 lines
158 B
JavaScript
var B = require('./B');
|
|
|
|
class C extends B {
|
|
foo(x:string):void { }
|
|
}
|
|
|
|
let c = new C();
|
|
(c.foo: number); // error, number !~> function
|
|
|
|
module.exports = C;
|