12 lines
246 B
TypeScript
12 lines
246 B
TypeScript
function b1(b1: number) {
|
|
b1.toPrecision(2); // should not error
|
|
b1(12); // should error
|
|
}
|
|
|
|
|
|
var x = {
|
|
b: function b(b: number) {
|
|
b.toPrecision(2); // should not error
|
|
b.apply(null, null); // should error
|
|
}
|
|
};
|