Re: [swift-dev] Property modification not taking effect

2017-05-23 Thread Pushkar N Kulkarni via swift-dev
,>> IBM Runtimes>> >> Simplicity is prerequisite for reliability - Edsger W. Dijkstra>> >> >> >> -swift-dev-boun...@swift.org wrote: ->> To: John McCall <rjmcc...@apple.com>>> From: Pushkar N Kulkarni via swift-dev >> Sent by: swif

Re: [swift-dev] Property modification not taking effect

2017-05-12 Thread John McCall via swift-dev
d to fix it; thanks. >> >> John. >> >>> >>> Pushkar N Kulkarni, >>> IBM Runtimes >>> >>> Simplicity is prerequisite for reliability - Edsger W. Dijkstra >>> >>> >>> >>> -swift-dev-boun...

Re: [swift-dev] Property modification not taking effect

2017-05-12 Thread Will Stanton via swift-dev
gt; //main >> Task().resume() >> >> Output with the latest master: >> before => ready(Test.TState(drain: Test.Drain.foo("wow"))) >> after => ready(Test.TState(drain: Test.Drain.foo("wow"))) >> >> >> Expected output (and with

Re: [swift-dev] Property modification not taking effect

2017-05-10 Thread John McCall via swift-dev
wift.org> > wrote: - > To: John McCall mailto:rjmcc...@apple.com>> > From: Pushkar N Kulkarni via swift-dev > Sent by: swift-dev-boun...@swift.org <mailto:swift-dev-boun...@swift.org> > Date: 05/10/2017 06:00PM > Cc: swift-dev mailto:swift-dev@swift.org>> > S

Re: [swift-dev] Property modification not taking effect

2017-05-10 Thread Pushkar N Kulkarni via swift-dev
The issue is seen with the 05-09 dev snapshot. However after updating the repos today, I no longer see it! Looks like one of yesterday's commits (which did not go into 05-09)  fixed it. I am closing the JIRA report. Thanks!Pushkar N Kulkarni, IBM RuntimesSimplicity is prerequisite for reliability -

Re: [swift-dev] Property modification not taking effect

2017-05-10 Thread Pushkar N Kulkarni via swift-dev
Thanks John. This is the JIRA bug report: https://bugs.swift.org/browse/SR-4852I was able to write a small test case that shows the regression:enum State {    case ready(TState)    case inProgress(TState)    var isPaused: Bool {        switch self {        case .ready: return false        case .inP

Re: [swift-dev] Property modification not taking effect

2017-05-09 Thread John McCall via swift-dev
> On May 9, 2017, at 3:07 PM, Pushkar N Kulkarni via swift-dev > wrote: > In the process of debugging a bunch of consistent failures in > TestFoundation/TestNSURLSession, I came across a weird problem symptom in > this line of code >

[swift-dev] Property modification not taking effect

2017-05-09 Thread Pushkar N Kulkarni via swift-dev
In the process of debugging a bunch of consistent failures in TestFoundation/TestNSURLSession, I came across a weird problem symptom in this line of code.internalState = .transferInProgress(transferState)I had a suspicion that the above modification is not taking effect, since, only based on this c