Closed
Description
Version: built from master
class C {
[arguments]() {} // A computed property name must be of type 'string', 'number', 'symbol', or 'any'
[name]() {} // this one the compiler thought it is property "name" of type string
[length](){} // this one the compiler thought it is a property "length" of type number"
[caller](){} // Cannot find name 'caller'. Did you mean the static member 'C.caller'?
}
var o = {
[arguments](){}, // A computed property name must be of type 'string', 'number', 'symbol', or 'any'
[name]() {}, // this one the compiler though it is property "name" of type string
[length](){}, // this one the compiler thought it is a property "length" of type number"
[caller](){}, // Cannot find name 'caller'. Did you mean the static member 'C.caller'?
}
Actual
inline actual error
Expected
all should get "Cannot find name " error