Invalid "Classes cannot have non-final generic functions in embedded Swift" error #78150
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
There is a bug where despite the class being
final
the compiler does not let me use generics in the initializer. This can't be fixed by addingfinal
as it seems to be disallowed on initializers. There appears to be a workaround, I made the initializer only create an empty texture and put the generics in a convenience initializerReproduction
Expected behavior
This class is final and only being used for reference semantics. It should compile.
Environment
Additional information
No response
The text was updated successfully, but these errors were encountered: