Hallo, meine C-Skills sind etwas angestaubt 🥴 … könnte mir jemand kurz erklären warum dieser Code
1 | void foo() { } |
2 | enum class Foo {bar}; |
3 | bool bar(Foo arg) { return arg == Foo::bar; } |
4 | void setup() {} |
5 | void loop() {} |
einen Compiler-Fehler wirft
1 | (3:10: error: 'Foo' was not declared in this scope) |
… aber keinen Fehler wirf wenn ich Zeile 1 und 2 vertausche?