Skip to content

Commit

Permalink
Ups, fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PalumboN committed Mar 9, 2021
1 parent 53c08d8 commit 01d34bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Levadura {
}

class Ale inherits Levadura {
// XPECT errors --> "There is already an instance variable with this name in the hierarchy" at "biomasa"
// XPECT errors --> "There is already an attribute with this name in the hierarchy" at "biomasa"
const biomasa = 200

method algoConBiomasaParaEvitarWarning() {
Expand All @@ -23,7 +23,7 @@ class B inherits Levadura {
* self one duplicates a var that is two levels up
*/
class C inherits B {
// XPECT errors --> "There is already an instance variable with this name in the hierarchy" at "biomasa"
// XPECT errors --> "There is already an attribute with this name in the hierarchy" at "biomasa"
const biomasa = 200

method algoConBiomasaParaEvitarWarning() {
Expand All @@ -33,7 +33,7 @@ class C inherits B {

// same for objects
object anObject inherits Levadura {
// XPECT errors --> "There is already an instance variable with this name in the hierarchy" at "biomasa"
// XPECT errors --> "There is already an attribute with this name in the hierarchy" at "biomasa"
const biomasa = 200

method algoConBiomasaParaEvitarWarning() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class MundoFeliz inherits Mundo {
var property c = true
}

// XPECT errors --> "There are instance variables with the same name in the hierarchy: [a]" at "new MundoFeliz() with MundoCerrado"
// XPECT errors --> "There are attributes with the same name in the hierarchy: [a]" at "new MundoFeliz() with MundoCerrado"
const mundoHippie = new MundoFeliz() with MundoCerrado

class C {
Expand Down

0 comments on commit 01d34bd

Please sign in to comment.