no typechecker error when missing overloaded refinements
See original GitHub issueThe following code should not pass the typechecker but it does:
import java.lang { Appendable }
class X() satisfies Appendable {
shared actual Appendable append(Character c) => this;
}
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (8 by maintainers)
Top Results From Across the Web
Support for arrays in disjoint unions refinements #7422 - GitHub
With the following code, I would expect flow to understand how control flow interacts with the union type, and refine the associated function ......
Read more >Type Errors - Pyre
In strict mode, Pyre will error when an attribute does not have an annotation. class A: b = foo() # Missing attribute annotation....
Read more >Type checking - Luau
In order to turn a variable of type unknown into a different type, you must apply type refinements on that variable.
Read more >Overloads not typechecking body - typescript - Stack Overflow
Does TypeScript not check the function body against function overloads at all? No it does not check the body against overload declarations.
Read more >Changes in Overload Resolution - Scala 3 - EPFL
Overload resolution in Scala 3 improves on Scala 2 in three ways. ... compiles in Scala 3, while it results in a missing...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
With 1.2.2 I get:
Done.