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

[Reconciler][Sealed types] Extra errors in editor that go away on file save #3122

Closed
srikanth-sankaran opened this issue Oct 19, 2024 · 0 comments · Fixed by #3130
Closed
Assignees
Milestone

Comments

@srikanth-sankaran
Copy link
Contributor

interface SuperInt {}
 
abstract sealed class Maybe<N extends Number> {
	final class Maybe1 extends Maybe<Long> {}
	final class Maybe2 extends Maybe<Long> implements SuperInt {}
}
   
class Test {

	void testMaybe(Maybe<?> maybe) {
		if (maybe == null) return;
		zork(); 
	}
}  

Make any change to the edit buffer - two bogus errors show up in the editor but not in the problems view:

The type Maybe1 extending a sealed class Maybe<Long> should be a permitted subtype of Maybe<Long>
The type Maybe2 extending a sealed class Maybe<Long> should be a permitted subtype of Maybe<Long>

Save the file, problems vanish. They reappear when buffer is changed.

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