File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
clarity/src/vm/analysis/type_checker/v2_1/tests Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -2647,13 +2647,18 @@ fn clarity_trait_experiments_downcast_trait_5(
2647
2647
) {
2648
2648
let mut marf = MemoryBackingStore :: new ( ) ;
2649
2649
let mut db = marf. as_analysis_db ( ) ;
2650
+ let downcast_trait_5 = if version >= ClarityVersion :: Clarity4 {
2651
+ "downcast-trait-5-c4"
2652
+ } else {
2653
+ "downcast-trait-5"
2654
+ } ;
2650
2655
2651
2656
// Can we use a principal exp where a trait type is expected?
2652
2657
// Principal can come from constant/var/map/function/keyword
2653
2658
let err = db
2654
2659
. execute ( |db| {
2655
2660
load_versioned ( db, "math-trait" , version, epoch) ?;
2656
- load_versioned ( db, "downcast-trait-5" , version, epoch)
2661
+ load_versioned ( db, downcast_trait_5 , version, epoch)
2657
2662
} )
2658
2663
. unwrap_err ( ) ;
2659
2664
if epoch <= StacksEpochId :: Epoch2_05 {
You can’t perform that action at this time.
0 commit comments