ullstrm
(J. Ullstrm)
1
Basically this code produces very odd results in release builds with [-O] Optimization Level. (See attached screenshot).
My bet is that it has something to do with the new "@unknown default" since it works with a custom Enum as Associated Value.
I will file a bug for this! Sorry if this post is unnecessary.
I can reproduce this with -O, but not -Onone.
cc @Erik_Eckstein @Michael_Gottesman
hartbit
(David Hart)
3
I guess opening a ticket on bugs.swift.org
mcousillas6
(Mauricio Cousillas)
4
Having the same issue here, looks like https://bugs.swift.org/browse/SR-5333?jql=text%20~%20"enum%20associated" it was fixed on swift4 and re-appeared on xcode10.2