eo icon indicating copy to clipboard operation
eo copied to clipboard

Unexpected error 'null'

Open ivan-egorov42 opened this issue 3 years ago • 4 comments

@mximp @Graur do not know how to fix this error. What could you advise?

[] > class

  #class Cart
  [] > original-cart
    5 > total
    [b] > add-it
      total.plus b.price > @
  [] > cart
    original-cart > @
    [b] > add
      if. > @
        b.subtype-of "Book"
        @.add-it b
        []
          "Type mismatch, Book expected" > msg

  #class Book
  [] > original-book
    6 > price
  [] > book
    original-book > @
    [t] > subtype-of
      t.eq "Book" > @
    [] > price
      @.price > @

[] > test
  class.book > b
  class.cart > c
  QQ.io.stdout > @
    QQ.txt.sprintf
      "Total is %d\n"
      c.add b

Running with eoc dataize test

ivan-egorov42 avatar Aug 31 '22 18:08 ivan-egorov42

@ivan-egorov42 What is the exact exception? What are the steps to reproduce?

mximp avatar Sep 01 '22 07:09 mximp

@mximp sorry, actually forgot to attach error:

EOorg.EOeolang.EOstringν1045="Unexpected error 'null' of type StackOverflowError; caused by "SF

Got this when I tried to dataize test. No problems with building, I get error in running program.

ivan-egorov42 avatar Sep 01 '22 11:09 ivan-egorov42

@ivan-egorov42 This example is too big. Please, make it more compact and readable

Graur avatar Sep 01 '22 15:09 Graur

@Graur I've already tried. Ok, I'll try to shorten more.

ivan-egorov42 avatar Sep 01 '22 15:09 ivan-egorov42

@ivan-egorov42 Can we close it?

Graur avatar Nov 14 '22 09:11 Graur