<commit_before><commit_msg>[Sema] NFC: Add test-case for rdar://problem/37303482<commit_after>// RUN: %target-typecheck-verify-swift

class P {}
class A : P {
  func foo() throws {}
}

class B : P {
  func foo() throws {}
}

typealias C = (P) throws -> Void
typealias E = (c: P.Type, arr: [(String, C)])

func foo<T: P>(_: [(String, (T) -> () throws -> Void)]) -> E { fatalError() }
func foo<T: P>(_: [(String, (T) -> () -> Void)]) -> E { fatalError() }

var arr = [E]()
arr.append(foo([("a", A.foo)]))
arr.append(foo([("b", B.foo)]))
{'fraction_non_alphanumeric': 0.25280898876404495, 'fraction_numerical': 0.0149812734082397, 'mean_word_length': 3.734513274336283, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4023395', 'n_tokens_mistral': 228, 'n_tokens_neox': 210, 'n_words': 58}