Skip to content

Commit

Permalink
add a test. (I checked that it shows the problem before adding the fi…
Browse files Browse the repository at this point in the history
…xed method)
  • Loading branch information
MarcusDenker committed Dec 2, 2019
1 parent e7539b5 commit b7b471c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/TraitsV2-Tests/T2SubclassingTraitedClassTest.class.st
Expand Up @@ -34,3 +34,12 @@ T2SubclassingTraitedClassTest >> testCreatingMethodInSubclass2 [
self assert: (c2 >> #asd) package name equals: 'TraitsV2-Tests'.
self assert: (c2 >> #asd) package equals: c2 package.
]

{ #category : #tests }
T2SubclassingTraitedClassTest >> testCreatingMethodInTraitClassSide [
| t1 c1 |
t1 := self newTrait: #T1 with: #() uses: {}.
t1 class compile: 'someObject ^#executingOverridenMethod'.
c1 := self newClass: #C1 with: #() uses: t1.
self assert: c1 someObject equals: #executingOverridenMethod.
]

0 comments on commit b7b471c

Please sign in to comment.