Skip to content

REPL behaves strangely on first try, OK afterwards. #2977

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
odersky opened this issue Aug 15, 2017 · 2 comments
Closed

REPL behaves strangely on first try, OK afterwards. #2977

odersky opened this issue Aug 15, 2017 · 2 comments

Comments

@odersky
Copy link
Contributor

odersky commented Aug 15, 2017

Here's a transcript:

scala> trait A 
defined trait A
scala> trait B 
defined trait B
scala> class C extends A with B 
-- Error: <console>:6:23 -------------------------------------------------------
6 |class C extends A with B
  |                       ^
  |unexpected parent type: HKApply(TypeRef(ThisType(TypeRef(NoPrefix,<empty>)),A),List(TypeRef(ThisType(TypeRef(NoPrefix,<empty>)),B)))
scala> class C extends A with B 
defined class C
@felixmulder
Copy link
Contributor

Seems to be classpath issues from discussion in meeting.

@DarkDimius
Copy link
Contributor

I'm pretty sure this is due to classpath pollution.

@smarter smarter closed this as completed in a2411b0 Jan 4, 2018
smarter added a commit that referenced this issue Jan 4, 2018
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

3 participants