Merge pull request #3510 from aditmehta9/patch-1

Updated initialiser
This commit is contained in:
Pratik Karki 2019-05-05 22:04:36 +05:45 committed by GitHub
commit 65a4d56d2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -708,7 +708,7 @@ class MyClass {
// We also get the compiler-generated initializer, with one argument per field.
// Note that soon there will be no compiler-generated initializer when we
// define any initializer(s) explicitly.
proc MyClass(val : real) {
proc init(val : real) {
this.memberInt = ceil(val): int;
}