You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
transparentinlinedeftransform(inlinea: Any):Any=inline a match {
casex: Byte=> x
casex: Short=> x
casex: Int=> x
casex: Long=> x
casex: Float=> x
casex: Double=> x
case _ => a
}
@main deftest= {
println(transform(0) <5)
}
Second sample
transparentinlinedeftransform(inlinea: Any):Any=inline a match {
casex: Byte=> x
casex: Short=> x
casex: Int=> x
casex: Long=> x
casex: Float=> x
casex: Double=> x
case _ => a
}
inlinedeflt(inlinea: Any, inlineb: Double):Boolean= transform(a) < b
@main deftest= {
println(lt(0, 5))
}
Expectation
The first sample compiles as expected.
The second sample doesn't compile but should. In lt, the transform call is fully inlined so I assume the compiler should be able to find the right return type.