We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
a = 1 a = [] a = [] a << 1
"a" is incorrectly typed as a union of Int and Array<Int>, but it should be a union of Int, Array<Nil> and Array<Int>
Int
Array<Int>
Array<Nil>
The text was updated successfully, but these errors were encountered:
Added pending spec for issue #12
1f28714
Simpler test case:
class Int def value=(x) end end a = 1 a = Pointer.malloc(1) a.value = 1 a = Pointer.malloc(1)
It's simpler because it doesn't involve arrays.
And another one with just objects:
generic class Foo def value=(value) @value = value end end foo = Foo.new foo.value = 1 foo = Foo.new
Should be union of Foo<> and Foo<Int> but it's just Foo<Int>
Foo<>
Foo<Int>
Sorry, something went wrong.
No branches or pull requests
"a" is incorrectly typed as a union of
Int
andArray<Int>
, but it should be a union ofInt
,Array<Nil>
andArray<Int>
The text was updated successfully, but these errors were encountered: