JET-79 Don't allow objects, classes, properties or namespaces with the same name

This commit is contained in:
Andrey Breslav
2011-06-03 16:52:12 +04:00
parent f0b8ef6946
commit 2446179949
3 changed files with 59 additions and 75 deletions
+16
View File
@@ -0,0 +1,16 @@
namespace redeclarations {
object <error>A</error> {
val x : Int
val A = 1
}
namespace <error>A</error> {
class A {}
}
class <error>A</error> {}
val <error>A</error> = 1
}