{"id":86,"hash":"2053bde72bc3bf2413b5e3626a1e7aacc1db8a8163121d97b1ed3898d90749c7","pattern":"the compiler is unable to type-check this expression in reasonable time","full_message":"error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions","ecosystem":"swift","package_name":"swift","package_version":null,"solution":"Swift's type inference gave up on a complex expression (often SwiftUI).\n1. Break the body into smaller computed views: `private var header: some View { ... }`.\n2. Annotate explicit types on intermediate values: `let x: [String] = ...`.\n3. Heavy use of ternaries and operator chains — split into `if` + `switch`.","confidence":0.88,"source":"internal","source_url":null,"votes":21,"created_at":"2026-04-19T03:37:14.153019+00:00","updated_at":"2026-04-19T03:37:14.153019+00:00"}