[SR-4206] Override checking does not properly enforce requirements #46789
Labels
accepts invalid
Bug: Accepts invalid
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
Environment
Swift Ver. 3.0.2
Additional Detail from JIRA
md5: 09af3d026b3ca16963a2c72d8d00ef63
is duplicated by:
relates to:
Issue Description:
Expected result: "A" will be printed
Actual result: "B" is printed
If we remove
foo<T: A>
overload compiler will complainargument type 'Foo' does not conform to expected type 'B'
.The text was updated successfully, but these errors were encountered: