- 
                Notifications
    
You must be signed in to change notification settings  - Fork 10.6k
 
Closed
Labels
compilerThe Swift compiler itselfThe Swift compiler itselfperformancetype checkerArea → compiler: Semantic analysisArea → compiler: Semantic analysis
Description
| Previous ID | SR-4097 | 
| Radar | None | 
| Original Reporter | @aciidb0mb3r | 
| Type | Bug | 
Additional Detail from JIRA
| Votes | 0 | 
| Component/s | Compiler | 
| Labels | Bug, Performance, TypeChecker | 
| Assignee | None | 
| Priority | Medium | 
md5: 15f93e89ff9011f4fc7b8335b323764d
Issue Description:
import Foundation
let x = [
    NSNumber(value : 0),
    NSNumber(value : 1/6),
    NSNumber(value : 3/6),
    NSNumber(value : 5/6),
    // NSNumber(value : 1),
]$ time swift main.swift
swift main.swift 2.66s user 0.21s system 98% cpu 2.904 total
--
import Foundation
let x = [
    NSNumber(value : 0),
    NSNumber(value : 1/6),
    NSNumber(value : 3/6),
    NSNumber(value : 5/6),
    NSNumber(value : 1),
]
$ time swift main.swift
main.swift:3:9: error: expression was too complex to be solved in reasonable time; consider breaking up the expression into distinct sub-expressions
let x = [
        ^
swift main.swift  11.73s user 1.84s system 99% cpu 13.635 totalMetadata
Metadata
Assignees
Labels
compilerThe Swift compiler itselfThe Swift compiler itselfperformancetype checkerArea → compiler: Semantic analysisArea → compiler: Semantic analysis