make import reassignment illegal @eventualbuddha

This commit is contained in:
Sebastian McKenzie
2015-01-07 07:58:04 +11:00
parent 2a09c0a5a5
commit 1cc606d4d0
5 changed files with 59 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
import { foo } from "foo";
var foo;

View File

@@ -0,0 +1,3 @@
{
"throws": "Illegal assignment of module import"
}

View File

@@ -0,0 +1,2 @@
import { foo } from "foo";
foo = 1;

View File

@@ -0,0 +1,3 @@
{
"throws": "Illegal assignment of module import"
}