Skip to content
New issue

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

bug: formal types in class refinements can be named as real types #97

Closed
Morriar opened this issue Sep 9, 2013 · 0 comments
Closed

Comments

@Morriar
Copy link
Member

Morriar commented Sep 9, 2013

Exemple:

redef class Array[Char]
    fun foo(c: Char) do 
        print c.is_alpha
    end
end

When compiling this code the compiler throws the error:
Error: Method 'is_alpha' doesn't exists in Array#0.
print c.is_alpha

Here the redef of Array with the formal type name Char must be rejected by the compiler because a type with the name Char already exists.

Assigned to @Morriar

@privat privat closed this as completed in fa432d2 Nov 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant