Skip to content

Import suggestion should filter out extension s #10230

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

Closed
bishabosha opened this issue Nov 8, 2020 · 1 comment
Closed

Import suggestion should filter out extension s #10230

bishabosha opened this issue Nov 8, 2020 · 1 comment

Comments

@bishabosha
Copy link
Member

Minimized code

class A:                                                                                                         
  extension (s: String)
    def len: Int = s.length

object B extends A:
  def len(s: String): Int = s.length + 1

@main def Test =
  import B.len
  assert("abc".len == 4)

Output

// TODO add output here

Expectation

@nicolasstucki
Copy link
Contributor

Same as #10231

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants