20 lines
347 B
Text
20 lines
347 B
Text
|
==== tests/cases/compiler/numericClassMembers1.ts (2 errors) ====
|
||
|
class C234 {
|
||
|
0 = 1;
|
||
|
0.0 = 2;
|
||
|
~~~
|
||
|
!!! Duplicate identifier '0.0'.
|
||
|
}
|
||
|
|
||
|
class C235 {
|
||
|
0.0 = 1;
|
||
|
'0' = 2;
|
||
|
~~~
|
||
|
!!! Duplicate identifier ''0''.
|
||
|
}
|
||
|
|
||
|
class C236 {
|
||
|
'0.0' = 1;
|
||
|
'0' = 2;
|
||
|
}
|
||
|
|