2014-11-20 22:36:43 +01:00
|
|
|
tests/cases/compiler/objectTypeWithOptionalProperty1.ts(2,10): error TS1162: An object member cannot be declared optional.
|
2014-11-20 00:00:45 +01:00
|
|
|
|
|
|
|
|
|
|
|
==== tests/cases/compiler/objectTypeWithOptionalProperty1.ts (1 errors) ====
|
|
|
|
var b = {
|
|
|
|
x?: 1 // error
|
|
|
|
~
|
2014-11-20 22:36:43 +01:00
|
|
|
!!! error TS1162: An object member cannot be declared optional.
|
2014-11-20 00:00:45 +01:00
|
|
|
}
|