<commit_before>// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/InferViaDefaults.swiftmodule -enable-experimental-type-inference-from-defaults -module-name InferViaDefaults %S/Inputs/type_inference_via_defaults_other_module.swift
// RUN: %target-build-swift -module-name main -Xfrontend -enable-experimental-type-inference-from-defaults -parse-as-library -I %t %s %S/Inputs/type_inference_via_defaults_other_module.swift -o %t/a.out
// RUN: %target-run %t/a.out | %FileCheck %s --color

protocol P {
  associatedtype X
}

func test1<T>(_ v: T = 42) {
  print("test1: \(v); type = \(type(of: v))")
}

struct S : P {
  typealias X = Int<commit_msg>[TypeChecker] NFC: Restrict executable test for type inference from defaults to macOS<commit_after>// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/InferViaDefaults.swiftmodule -enable-experimental-type-inference-from-defaults -module-name InferViaDefaults %S/Inputs/type_inference_via_defaults_other_module.swift
// RUN: %target-build-swift -module-name main -Xfrontend -enable-experimental-type-inference-from-defaults -parse-as-library -I %t %s %S/Inputs/type_inference_via_defaults_other_module.swift -o %t/a.out
// RUN: %target-run %t/a.out | %FileCheck %s --color

// REQUIRES: OS=macosx

protocol P {
  associatedtype X
}

func test1<T>(_ v: T = 42) {
  print("test1: \(v); type = \(type(of: v))")
}

struct S : P {
  typealias X = Int
{'fraction_non_alphanumeric': 0.1510840108401084, 'fraction_numerical': 0.005420054200542005, 'mean_word_length': 4.390510948905109, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3524749', 'n_tokens_mistral': 560, 'n_tokens_neox': 530, 'n_words': 112}