Skip to content

Conversation

@dan-zheng
Copy link
Contributor

Remove logic specific to nominal types in CSSimplify.cpp.

This enables callable functionality on values with a generic type parameter
type conforming to a protocol with a call func method.

Remove logic specific to nominal types in CSSimplify.cpp.

This enables callable functionality on values with a generic type parameter
type conforming to a protocol with a `call func` method.
@dan-zheng dan-zheng added the tensorflow This is for "tensorflow" branch PRs. label Apr 17, 2019
@dan-zheng dan-zheng requested a review from rxwei April 17, 2019 20:41
@dan-zheng
Copy link
Contributor Author

This unblocks code like:

func testLayer<L: Layer>(_ layer: L, _ input: L.Input) -> L.Output {
  return layer(input)
}

@rxwei
Copy link
Contributor

rxwei commented Apr 17, 2019

@swift-ci please test tensorflow

4 similar comments
@rxwei
Copy link
Contributor

rxwei commented Apr 17, 2019

@swift-ci please test tensorflow

@rxwei
Copy link
Contributor

rxwei commented Apr 17, 2019

@swift-ci please test tensorflow

@marcrasi
Copy link

@swift-ci please test tensorflow

@rxwei
Copy link
Contributor

rxwei commented Apr 17, 2019

@swift-ci please test tensorflow

@rxwei
Copy link
Contributor

rxwei commented Apr 17, 2019

CI seems dead on this PR. I've tested it locally. Merging since it's crunch time.

@rxwei rxwei merged commit 61b77d0 into swiftlang:tensorflow Apr 17, 2019
@rxwei rxwei deleted the tf-callable branch April 17, 2019 23:37
rxwei pushed a commit to rxwei/swift that referenced this pull request May 11, 2019
Remove logic specific to nominal types in CSSimplify.cpp.

This enables callable functionality on values with a generic type parameter
type conforming to a protocol with a `call func` method.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tensorflow This is for "tensorflow" branch PRs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants