You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
swift-ci opened this issue
Apr 10, 2017
· 0 comments
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfruntimeThe Swift Runtime
However, on Ubuntu 16.04, this code will compile, but when executed it will hang and the process will not return without CTRL+C.
I don't know if this kind of recursive generics is natively supported by Swift. If yes, then the code should not crash at runtime. If not, then the compiler should've caught this.
The text was updated successfully, but these errors were encountered:
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfruntimeThe Swift Runtime
Environment
Swift 3.0.2 and 3.1, OSX and Ubuntu 16.04
Additional Detail from JIRA
md5: e2897dbe16375302dc368ad8a232af74
duplicates:
Issue Description:
Here is a short example:
On OSX, this code will compile, but when executed, it will crash with this stack trace:
However, on Ubuntu 16.04, this code will compile, but when executed it will hang and the process will not return without CTRL+C.
I don't know if this kind of recursive generics is natively supported by Swift. If yes, then the code should not crash at runtime. If not, then the compiler should've caught this.
The text was updated successfully, but these errors were encountered: