We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 111db9e + 2b98123 commit 19f40e5Copy full SHA for 19f40e5
lib/Sema/PlaygroundTransform.cpp
@@ -621,9 +621,9 @@ class Instrumenter {
621
Elements.insert(Elements.begin() + (EI + 1), *Log);
622
++EI;
623
}
624
- Handled = true;
625
626
+ Handled = true; // Never log ()
627
628
if (!Handled) {
629
// do the same as for all other expressions
test/PlaygroundTransform/empty-tuple.swift
@@ -0,0 +1,9 @@
1
+// RUN: rm -rf %t && mkdir %t
2
+// RUN: cp %s %t/main.swift
3
+// RUN: %target-build-swift -Xfrontend -playground -Xfrontend -debugger-support -o %t/main %S/Inputs/PlaygroundsRuntime.swift %t/main.swift
4
+// RUN: %target-run %t/main | %FileCheck %s
5
+// REQUIRES: executable_test
6
+func foo() { }
7
+foo()
8
+1+2
9
+// CHECK: {{.*}} $builtin_log[='3']
0 commit comments