[SR-4279] Eager prefix(while:) on sequence(...).lazy instance #46862
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
type checker
Area → compiler: Semantic analysis
Attachment: Download
Environment
Xcode Version 8.3 beta 4 (8W143q)
Additional Detail from JIRA
md5: 07b8a4858b3678887ebe1acf699ebb5b
relates to:
Issue Description:
Executing following test case never terminates:
If you start splitting the chain of sequence operations to 1 and 2 subexpressions, compiler gives
error: ambiguous use of 'prefix(while: )’
.When you split it to 3 subexpressions, all of them type inferred, suddenly all works as it should:
This looks like it’s related to SR-4256? (cc @rudkx)
Note: You can ignore the attached
main.swift
- that was before I minimized the test case.The text was updated successfully, but these errors were encountered: