2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/indexer2A.ts (1 errors) ====
|
|
|
|
class IHeapObjectProperty { }
|
|
|
|
class IDirectChildrenMap {
|
|
|
|
// Decided to enforce a semicolon after declarations
|
|
|
|
hasOwnProperty(objectId: number): boolean
|
2014-07-31 01:27:13 +02:00
|
|
|
~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2391: Function implementation is missing or not immediately following the declaration.
|
2014-07-13 01:04:16 +02:00
|
|
|
[objectId: number]: IHeapObjectProperty[]
|
|
|
|
}
|
|
|
|
var directChildrenMap = <IDirectChildrenMap>{};
|