chapel-lang / chapel

a Productive Parallel Programming Language
https://chapel-lang.org
Other
1.79k stars 420 forks source link

[Bug]: Syntax error near proc #25323

Closed toihr closed 4 months ago

toihr commented 4 months ago

Summary of Problem

Description:

While trying to write a simple program I am not able to compile this simple program. I obtain the two errors: DBScan.chpl:7: syntax error: near 'proc' DBScan.chpl:13: syntax error: near '}'

Which I do not understand why they happen. r

Is this issue currently blocking your progress?

Steps to Reproduce

Source Code:

module dbscan{

    use List

proc main() {
        var B: [1..n, 1..n] real;
        var C : list(list(int)) =  [[1]];
        writeln(1);
}

}

Compile command:

chpl DBScan.chpl

Associated Future Test(s):

Configuration Information

mppf commented 4 months ago

use List

it needs to be

use List;

toihr commented 4 months ago

Thank you I must have completely overseen this sorry for taking up your time.