Inconsistent behaviour for .as(A)
, where A
is either a class or a module
#8334
Labels
.as(A)
, where A
is either a class or a module
#8334
The following fails to compile with
Error: undefined method 'f' for A (compile-time type is A+)
On the other hand, turning A into a module leads to an error-free compilation:
I'd argue the two should behave in the same way - either way we pick - and mark this as a bug.
What are your thoughts?
The text was updated successfully, but these errors were encountered: