Skip to content

nelcea/Test_TypedThrowEncapsulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test Typed Throw Encapsulation

This test code shows using 2 different Error enums, one encapsulating the other.
Using swift run to compile the code leads to a compiler assertion failure.
There are several alternative implementations of the encapsulateLevel2 method that do not provoke this crash.
This has been tested with Swift 6.2.3 and 6.3-snapshot-2026-01-09.
Bug has been submitted on the swift GitHub repo: Compiler assertion failure with typed throws · Issue #86463 · swiftlang/swift

About

Sample code with encapsulated Error causing compiler crash

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages