eo
eo copied to clipboard
Unexpected error 'null'
@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 What is the exact exception? What are the steps to reproduce?
@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 This example is too big. Please, make it more compact and readable
@Graur I've already tried. Ok, I'll try to shorten more.
@ivan-egorov42 Can we close it?