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
// This compiles:opaquetypeOne=1inlinevalOne:One=1// But this does not:opaquetypeMax=Int.MaxValue.typeinlinevalMax:Max=Int.MaxValue// inline value must have a literal constant type// However, this does:inlinevalMaxValue:Int.MaxValue.type=Int.MaxValue
Output
[error] 33|inline valMax:Max=Int.MaxValue
[error] |^^^
[error] |inline value must have a literal constant type
[error] one error found
Expectation
If it is possible to inline a value of literal type Int.MaxValue, it should be possible to inline an opaque alias of that.