saqut-compiler/tests/golden/string/concat.sqt

25 lines
504 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// ADR-024: string birleştirme (+, +=) — immutable değer-tipi, içerik ==
int main() {
string a = "Merhaba";
string b = " Dünya";
string c = a + b;
print(c);
string s = "foo";
s += "bar";
print(s);
// İki farklı değişken, aynı içerik → true (ADR-023/024)
string x = "abc";
string y = "abc";
print(x == y);
// Birleştirme sonucu eşitlik
string p = "Hello" + " World";
string q = "Hello World";
print(p == q);
return 0;
}