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
object PathDependentTypes extends App { | |
class Food {} | |
class Grass extends Food {} | |
class DogFood extends Food {} | |
abstract class Animal { | |
// SuitableFood is a subtype of Food, deriving classes must define it | |
type SuitableFood <: Food | |
def eat(food: SuitableFood) | |
} |
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
import rescala._ | |
import rescala.events.{ Event, ImperativeEvent } | |
import makro.SignalMacro.{SignalM => Signal} | |
object ReScalaDemo extends App { | |
/* | |
Observer criticism | |
- inverts natural dependency order (listeners call soure to register) |
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
public class AutoIndexMerging : RavenTest | |
{ | |
const string SampleLogfileStoreId = "123"; | |
[Fact] | |
public async Task AutoIndexReuseFails() | |
{ | |
var store = NewRemoteDocumentStore( fiddler: true ); | |
var session = store.OpenAsyncSession(); |
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
// MS-PL License. | |
// Author Johannes Rudolph <[email protected]> | |
// This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software. | |
// 1. Definitions | |
// The terms "reproduce," "reproduction," "derivative works," and "distribution" have the same meaning here as under U.S. copyright law. | |
// A "contribution" is the original software, or any additions or changes to the software. | |
// A "contributor" is any person that distributes its contribution under this license. | |
// "Licensed patents" are a contributor's patent claims that read directly on its contribution. |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Xunit; | |
namespace Raven.Tests.Bugs | |
{ | |
public class MarkReadOnly : RavenTest | |
{ |
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
public class TeamcityTestReporter : ITestReporter | |
{ | |
TextWriter writer; | |
public TeamcityTestReporter( System.IO.TextWriter writer ) | |
{ | |
this.writer = writer; | |
} | |
public void TestSuiteStarted( NUnit.Framework.Internal.TestSuite ts ) |
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
Apr 17 10:43:20 iDevPod01 installd[52] <Error>: 0x2fe93000 handle_install: Install of "/var/mobile/Media/PublicStaging/RowMotionBoatAppiOS.app" requested by mobile_installation_proxy | |