mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-05-01 17:24:34 +00:00
Estimated hours taken: 1 Branches: main compiler/mlds_to_ilasm.m: Fix a compiler abort with `--use-subdirs'. tests/valid/Mmakefile: tests/valid/csharp_hello.m: Test case.
13 lines
285 B
Mathematica
13 lines
285 B
Mathematica
:- module csharp_hello.
|
|
:- interface.
|
|
:- import_module io.
|
|
:- pred main(io::di, io::uo) is det.
|
|
|
|
:- implementation.
|
|
|
|
:- pragma foreign_proc("C#", main(_IO0::di,_IO::uo),
|
|
[will_not_call_mercury, promise_pure],
|
|
"
|
|
System.Console.WriteLine(""Hello Mercury/C# world"");
|
|
").
|