Don't parse class properties without initializers when classProperties is disabled and Flow is enabled (#300)

This commit is contained in:
Andrew Levine
2017-01-23 16:56:39 -06:00
committed by Daniel Tschinder
parent b6c3b5aa83
commit 9929baaca8
7 changed files with 25 additions and 1 deletions

View File

@@ -0,0 +1,3 @@
class Foo {
bar: string = 'bizz';
}

View File

@@ -0,0 +1,4 @@
{
"plugins": ["flow"],
"throws": "You can only use Class Properties when the 'classProperties' plugin is enabled. (2:14)"
}

View File

@@ -0,0 +1,3 @@
class Foo {
bar = 'bizz';
}

View File

@@ -0,0 +1,3 @@
{
"throws": "You can only use Class Properties when the 'classProperties' plugin is enabled. (2:2)"
}

View File

@@ -0,0 +1,3 @@
class Foo {
bar;
}

View File

@@ -0,0 +1,3 @@
{
"throws": "You can only use Class Properties when the 'classProperties' plugin is enabled. (2:2)"
}