Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-10162] Parse error in Playground #52564

Open
Agarunov opened this issue Mar 24, 2019 · 5 comments
Open

[SR-10162] Parse error in Playground #52564

Agarunov opened this issue Mar 24, 2019 · 5 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself regression swift 5.0 type checker Area → compiler: Semantic analysis

Comments

@Agarunov
Copy link

Previous ID SR-10162
Radar rdar://problem/64947430
Original Reporter @Agarunov
Type Bug
Status Reopened
Resolution

Attachment: Download

Environment

Swift 5, Xcode 10.2 beta 4 (10P107d)

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, 5.0Regression, TypeChecker
Assignee None
Priority Medium

md5: 22b83344b8d2b68d6eedf941c27bca1c

Issue Description:

Xcode 10.2 beta Playground produces error:

expression failed to parse, unknown error

for this code:

import UIKit


let viewController = UIViewController()
viewController.view.frame.size = CGSize(width: 320, height: 640)

For Xcode 10.1 no errors

@belkadan
Copy link
Contributor

Very strange. Adding an intermediate variable for view works, so maybe the compiler is trying to do some kind of weird writeback?

@belkadan
Copy link
Contributor

cc @xedin

@hborla
Copy link
Member

hborla commented Jun 26, 2020

This seems to be fixed in Swift 5.3. Could you please verify using Xcode 12 beta 1? Thank you!

@hborla
Copy link
Member

hborla commented Jun 26, 2020

Oops, I've made a mistake. The playground said "build succeeded" but I didn't open the debug console which says "expression failed to parse". Reopening!

@hborla
Copy link
Member

hborla commented Jun 26, 2020

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself regression swift 5.0 type checker Area → compiler: Semantic analysis
Projects
None yet
Development

No branches or pull requests

4 participants