Diagnostics for wrong inlinable usage

This commit is contained in:
Mikhael Bogdanov
2013-11-29 16:22:31 +04:00
parent ac6dc9fa54
commit c89c465fec
18 changed files with 635 additions and 8 deletions
@@ -0,0 +1,7 @@
class Z(s: (Int) -> Int) {
}
public inline fun test(s : (Int) -> Int) {
<!INVISIBLE_MEMBER_FROM_INLINE!>Z<!>(<!USAGE_IS_NOT_INLINABLE!>s<!>)
}