mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
13 lines
297 B
TypeScript
13 lines
297 B
TypeScript
//// [tests/cases/compiler/contextualTyping14.ts] ////
|
|
|
|
//// [contextualTyping14.ts]
|
|
class foo { public bar:(a:number)=>number = function(a){return a}; }
|
|
|
|
//// [contextualTyping14.js]
|
|
"use strict";
|
|
class foo {
|
|
constructor() {
|
|
this.bar = function (a) { return a; };
|
|
}
|
|
}
|