fix incorrect overload error on regular function and extension function with same name

===
fun ff() = 1

fun Int.ff() = 1
===
This commit is contained in:
Stepan Koltsov
2011-11-12 16:54:33 +04:00
parent 50c7364f6b
commit 3193b7d2c4
3 changed files with 52 additions and 11 deletions
@@ -46,3 +46,22 @@ namespace ns3 {
}
}
// check same rules apply for ext functions
namespace extensionFunctions {
<!CONFLICTING_OVERLOADS!>fun Int.qwe(a: Float)<!> = 1
<!CONFLICTING_OVERLOADS!>fun Int.qwe(a: Float)<!> = 2
fun Int.rty() = 3
fun String.rty() = 4
}
// check no error when regular function and extension function have same name
namespace extensionAndRegular {
fun who() = 1
fun Int.who() = 1
}