fix: separate csharp and dotnet hello code
csharp (Mono) needs classic class syntax while dotnet (.NET 10) uses top-level statements
This commit is contained in:
parent
bc80b16e82
commit
1150796500
1 changed files with 2 additions and 1 deletions
|
|
@ -106,7 +106,8 @@ int main() { std::cout << "test-ok" << std::endl; return 0; }' ;;
|
|||
java) echo 'public class Main { public static void main(String[] args) { System.out.println("test-ok"); } }' ;;
|
||||
kotlin) echo 'fun main() { println("test-ok") }' ;;
|
||||
swift) echo 'print("test-ok")' ;;
|
||||
csharp|dotnet) echo 'class P{static void Main(){System.Console.WriteLine("test-ok");}}' ;;
|
||||
csharp) echo 'class P{static void Main(){System.Console.WriteLine("test-ok");}}' ;;
|
||||
dotnet) echo 'Console.WriteLine("test-ok");' ;;
|
||||
fsharp) echo 'printfn "test-ok"' ;;
|
||||
haskell) echo 'main = putStrLn "test-ok"' ;;
|
||||
ocaml) echo 'print_endline "test-ok"' ;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue