KT-424 also check overloads in namespaces

This commit is contained in:
Stepan Koltsov
2011-11-10 20:00:34 +04:00
parent 31b049893f
commit a4b62868fa
3 changed files with 67 additions and 7 deletions
@@ -12,3 +12,31 @@ class A {
<!CONFLICTING_OVERLOADS!>fun b()<!> {
}
}
namespace deepSpace {
<!CONFLICTING_OVERLOADS!>fun c(s: String)<!> {
}
<!CONFLICTING_OVERLOADS!>fun c(s: String)<!> {
}
class B {
<!CONFLICTING_OVERLOADS!>fun d(s: String)<!> {
}
<!CONFLICTING_OVERLOADS!>fun d(s: String)<!> {
}
}
}
// check no error in overload in different namespaces
namespace ns1 {
fun e() = 1
}
namespace ns2 {
fun e() = 1
}