Expected assignment to opaque type fails #73789
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
type checker
Area → compiler: Semantic analysis
Description
The line
let notWorking: () -> some View = { EmptyView() }
in the example fails with the following error.Reproduction
Expected behavior
No errors
Environment
Additional information
I initially asked this in https://forums.swift.org/t/need-help-understanding-opaque-types/71988 and I was suggested to file a bug here.
The text was updated successfully, but these errors were encountered: