poke-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug default/26888] New: Infamous constructor bug


From: jose.marchesi at oracle dot com
Subject: [Bug default/26888] New: Infamous constructor bug
Date: Sat, 14 Nov 2020 14:03:45 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=26888

            Bug ID: 26888
           Summary: Infamous constructor bug
           Product: poke
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: default
          Assignee: unassigned at sourceware dot org
          Reporter: jose.marchesi at oracle dot com
                CC: poke-devel at gnu dot org
  Target Milestone: ---

+ (Foo{}).bar fails in the code below.  This is the infamous bug related
+ to nested types and constructors.
+ 
+ type Foo =
+   struct
+   {
+     int i;
+ 
+     fun foo = int:
+       {
+         return i + 1;
+       }
+       
+     method bar = int:
+       {
+         type Bar =
+           struct
+           {
+             int j;
+             method bar = int: { return j + 1; }
+           };
+         
+         fun jorl = int:
+         {
+           return (Bar { j = 1 }).bar;
+         }
+ 
+         return jorl + i;
+       }
+   };

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]