K2: fix NSME on toChar for subclasses of Number

Code in `ReplaceNumberToCharCallSitesLowering` relies on `Number.toChar`
being declared in IR as non-abstract. Otherwise the
`resolveFakeOverride` call there doesn't work, and the lowering can't
rewrite the call to `toInt().toChar()`, and we end up with a call to the
missing method `Number.toChar` in the bytecode.

 #KT-57217 Fixed
This commit is contained in:
Alexander Udalov
2023-06-20 00:10:19 +02:00
committed by Space Team
parent 175cf5e833
commit 13baf43ae3
3 changed files with 3 additions and 5 deletions
@@ -2,9 +2,6 @@
// ISSUE: KT-23447
// WITH_STDLIB
// IGNORE_BACKEND_K2: JVM_IR
// Ignore reason: KT-57217
// FILE: MyNumber.java
public class MyNumber extends Number {