KT-1934 Check inherited signatures for compatibility

Overridden signatures should have compatible return types
(equal types for 'var').
Only relevant overrides should be taken into account.
Refactor inherited signatures check,
introduce a strategy interface for problem reporting.
This commit is contained in:
Dmitry Petrov
2015-12-01 10:21:30 +03:00
parent 18e343d405
commit 135c30323b
19 changed files with 833 additions and 44 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ abstract class Foo<T> {
}
interface Tr {
fun hello(s : String)
fun hello(s : String): String
}
class Bar: Foo<String>(), Tr {