saqut-compiler/examples/semantic/widening.sqt

8 lines
253 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.

// W004 — örtük genişletme: değişken→değişken int→float
int main() {
int a = 5;
float b = 1; // OK: literal bağlama-göre tiplenir, uyarısız
float c = a; // W004: int değişken → float değişken
return 0;
}