We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
class Base { type T = Int | Boolean def test(x: Object) = x.isInstanceOf[T] } object Test { def main(args: Array[String]) = { val b = new Base println(b.test(Int.box(3))) println(b.test(Double.box(3.4))) // should be false, but true } }
The text was updated successfully, but these errors were encountered:
Fix scala#1490: type test of union types via type alias
61e9372
9a5a517
Merge pull request #1491 from dotty-staging/fix-i1490
1650add
Fix #1490: type test of union types via type alias
8fa5627
liufengyun
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
The text was updated successfully, but these errors were encountered: