[Typecheck] Failing to compile inlinable function with enable-library-evolution
#62507
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
@inlinable
Feature → attributes: the @inlinable attribute
library evolution
Feature: library evolution (umbrella feature for features that facilitate resilient libraries)
not a bug
Resolution → not a bug: Reported as a bug but turned out to be expected behavior or programmer error
type checker
Area → compiler: Semantic analysis
Description
For the following test case we fail to compile and get
'let' property 'i' may not be initialized directly; use "self.init(...)" or "self = ..." instead
only ininlinable
init and withenable-library-evolution
mode. Not sure why it shouldn't compileThe problem seems to be with the bindings for member that for some reason with library evolution enabled find a
r-value
for member type, causing the failure:Without it thing seems to be fine
Where
$T0
is the base and$T1
member type.Steps to reproduce
Run test case above with lit
Expected behavior
This code should compile, I don't see why it would behave differently with
enable-library-evolution
Environment
The text was updated successfully, but these errors were encountered: