Skip to content
This repository was archived by the owner on Apr 2, 2020. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
private var a = 1

func doSomething(b: Int) {
a += strideof(b.dynamicType) //% self.expect("expr a", substrs=['Int', '= 1'])
a += MemoryLayout.of(b).stride //% self.expect("expr a", substrs=['Int', '= 1'])
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually this stride value means nothing here.
We might want to use simpler expression? e.g. a += 42

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I asked Jim and Sean about this test, and they suggested that we use a += b, as long as the test continues to pass.

}

doSomething(b:2)