'sealed' is now not 'final' by default + related code changes #KT-10266 Fixed

This commit is contained in:
Mikhail Glukhikh
2015-12-07 19:08:30 +03:00
parent 5b72afe8a0
commit c73f01927a
11 changed files with 85 additions and 13 deletions
@@ -15,7 +15,7 @@ sealed class Sealed(val x: Int) {
fun foo(s: Sealed): Int {
return <!NO_ELSE_IN_WHEN!>when<!>(s) {
is Sealed.First -> 1
!is <!INCOMPATIBLE_TYPES!>Sealed.ITuple<!> -> 0
!is Sealed.ITuple -> 0
// else required
}
}