-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of github.com:ScorexFoundation/sigmastate-inte…
…rpreter into distributed-sigs
- Loading branch information
Showing
15 changed files
with
3,207 additions
and
1,373 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
package special.sigma | ||
|
||
import scalan.OverloadHack.Overloaded1 | ||
import scalan.RType | ||
|
||
// TODO refactor: move to sigmastate package and rename to CAnyValue | ||
|
||
/** Default implementation of AnyValue interface. */ | ||
case class TestValue[A](value: A, tVal: RType[Any]) extends AnyValue { | ||
def tA: RType[A] = tVal.asInstanceOf[RType[A]] | ||
override def toString = s"Value($value)" | ||
override def toString = s"TestValue($value)" | ||
} | ||
|
||
object TestValue { | ||
def apply[A](value: A, t: RType[A])(implicit o: Overloaded1): TestValue[A] = | ||
new TestValue(value, t.asInstanceOf[RType[Any]]) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.